﻿using Bot.Salesforce.Enum;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace Bot.Salesforce
{
    public static class Utils
    {
        public static string ConnectUrl(string host, string url)
        {
            return $"{host}{url}";
        }

        public static HttpRequestMessage BuildHttpRequestMessage(string host, string url, EnumHttpMethod method)
        {
            var request = new HttpRequestMessage(new HttpMethod(method.ToString()), Utils.ConnectUrl(host, url));
            return request;
        }
    }
}
